package com.boe.common.base.mybatisplus;

import cn.hutool.core.util.IdUtil;
import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import com.boe.common.util.RandomUtil;
import com.boe.common.util.StringUtil;
import org.springframework.stereotype.Component;

@Component
public class BoeIdGenerator implements IdentifierGenerator {
    @Override
    public Number nextId(Object entity) {
        return null;
    }

    @Override
    public String nextUUID(Object entity) {

        return StringUtil.getSnowflake();
    }
}
